package com.fiona.core.message;

import java.io.Serializable;

public class Message implements Serializable {
	private static final long serialVersionUID = -7543514952950971498L;
	private String messageKey;
	/**
	 * REQUEST_TYPE = 1; RESPONSE_TYPE = 2; HEARTBEAT_REQUEST_TYPE =
	 * 3;HEARTBEAT_RESPONSE_TYPE = 4;
	 */
	private byte type;

	private byte codec;
	private Object data;

	public String getMessageKey() {
		return messageKey;
	}

	public void setMessageKey(String messageKey) {
		this.messageKey = messageKey;
	}

	public byte getType() {
		return type;
	}

	public void setType(byte type) {
		this.type = type;
	}

	public byte getCodec() {
		return codec;
	}

	public void setCodec(byte codec) {
		this.codec = codec;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
